package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.common.b_pojo.BRole;

import java.util.List;

public interface BRoleService {

    Page<BRole> hasdelectlist(int pageNum, int pageSize);

    Page<BRole> alllist(int pageNum, int pageSize);

    boolean insertRole(BRole role);

    boolean deleteRole(Long id);

    int updateRole(Long id);

    int updateRoleByRoleId(Long id);

    BRole getrole(Long id);

    boolean updateRole(BRole bRole);

    boolean insertRoleandPermission(Long id, Long permissionId);

    boolean delectRoleandPermission(Long id, Long permissionId);

    boolean startRoleByRoleId(Long id);
}
